Files for Wada and Kamahara, "Studying Malapportionment Using alpha-Divergence" in Mathematical Social Sciences:
* Main

1. Replication_Code.R
to make graphs in Main Text.
For Figs. 2-5

2. a_0.csv
For Fig. 4

3. Italy2008.csv
For Fig. 5

4. Taiwan2004.csv
For Fig. 5

5. Taiwan2008.csv
For Fig. 5

Appendix
6. Appendix.R
to make graphs in Appendix B.

7. a_-9.csv
For Fig. B.1
alpha-divergence (alpha=-9)

8. a_-1.csv
For Fig. B.2
alpha-divergence (alpha=-1)

9. a_1.csv
For Fig. B.3
alpha-divergence (alpha -> 1)

10. a_2.csv
For Fig. B.4
alpha-divergence (alpha = 2)

11. a_10.csv
For Fig. B.5
alpha-divergence (alpha = 10)

* Raw Data for Italy and Taiwan
In each Excel file, a spreadsheet, "Input_D_total_divergence," include the raw information of each election in Italy or Taiwan.
A spreadsheet, "Output," includes the calculated results of the overall value of alpha-divergence and its decomposed factors. 
All other spreadsheets are the results by calculating each term in the formula of alpha-divergence.
Each csv file for Appendix is made from these outputs, 

12. rItaly1996.xlsx
the 1996 Italian election

13. rItaly2001.xlsx
the 2001 Italian election

14. rItaly2006.xlsx
the 2006 Italian election

15. rItaly2008.xlsx
the 2008 Italian election

16. rTaiwan1998.xlsx
the 1998 Taiwan election

17. rTaiwan2001.xlsx
the 2001 Taiwan election

18. rTaiwan2004.xlsx
the 2004 Taiwan election

19. rTaiwan2008.xlsx
the 2008 Taiwan election
